/*
 * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
 * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
 */

package org.sbbs.function;

import java.util.function.BiFunction;
import java.util.function.Function;

/**
 * <b>描述:</b><br/><br/>
 * 
 * 说明描述用途及关键点,算法等
 * <p>
 * <b>创建时间:</b> 2025年4月2日 14:08:12 <br/>
 * <b>作者:</b> Mr.FDC <fdc_messenger@126.com> <br/>
 * 
 * <p>
 * <b>修改记录:</b><br/>
 * <ol>
 * <li>......</li>
 * </ol>
 */
public class DemoLambdas {
    public static Integer computeOne(Function<Integer,Integer> function, Integer value){
        return function.apply(value);
    }


    public static Integer computeTwo(BiFunction<Integer,Integer,Integer> function, Integer value, Integer value2){
        return function.apply(value,value2);
    }

}